Skip to content

fix: hotfix round 2 — 5 admin UI bugs#50

Open
Weegy wants to merge 1 commit intomainfrom
hotfix/admin-ui-bugs-r2
Open

fix: hotfix round 2 — 5 admin UI bugs#50
Weegy wants to merge 1 commit intomainfrom
hotfix/admin-ui-bugs-r2

Conversation

@Weegy
Copy link
Copy Markdown
Contributor

@Weegy Weegy commented Mar 16, 2026

Summary

Fixes 5 production UI bugs found in the admin interface.

Bug Fixes

Bug 1: Media Upload — Wrong URL

  • File: resources/js/Components/Media/MediaUploadZone.vue + resources/js/Pages/Media/Index.vue
  • Fix: Changed /v1/media/api/media and /api/v1/media/api/media across all media fetch/XHR calls

Bug 2: Knowledge Graph 401 — Missing Auth

  • File: resources/js/Components/Graph/KnowledgeGraphViewer.vue
  • Fix: Added credentials: 'same-origin' and X-XSRF-TOKEN header for Sanctum session auth

Bug 3: Languages Page — No Locales Loaded

  • File: routes/web.php
  • Fix: Route now passes locales and supported Inertia props via LocaleService

Bug 4: Plugins Page — Empty

  • File: routes/web.php
  • Fix: Route now queries Plugin model and passes PluginResource collection as Inertia props

Bug 5: Chat Sidebar FAB Overlaps Input

  • File: resources/js/Components/Chat/ChatSidebar.vue
  • Fix: FAB now uses v-show="!isOpen" to hide completely when sidebar is open

Quality Gates

  • vendor/bin/pint --test — PASS
  • vendor/bin/phpstan analyse — No new errors in changed files
  • npm run build — PASS
  • ℹ️ Pre-existing test failures on main (DifferentiationAnalysisServiceTest, WebhookAdminControllerTest)

Bug 1: Fix media upload URL — change /v1/media to /api/media in
MediaUploadZone.vue and Media/Index.vue (all fetch/XHR calls).

Bug 2: Fix Knowledge Graph 401 — add credentials: same-origin and
X-XSRF-TOKEN header to fetch in KnowledgeGraphViewer.vue so
Sanctum session auth works.

Bug 3: Fix Locales page — route now passes locales and supported
props via LocaleService instead of rendering with empty props.

Bug 4: Fix Plugins page — route now queries Plugin model and passes
PluginResource collection as props instead of empty array.

Bug 5: Fix Chat FAB overlap — use v-show="!isOpen" on the FAB
button to hide it completely when sidebar is open, preventing
overlap with input area.
@Weegy Weegy added the bug Something isn't working label Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant